import request from "@/utils/request";
/**
 * 新增项目接口
 * @param {*} data 
 */
export function addProject(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/addProject",
    method: "post",
    data
  });
}

/**
 * 获取项目成员(无参数)
 * @param {*} data 
 */
export function getAllList(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/getRoleList",
    method: "get",
    params: data
  });
}
/**
 * 获取所有项目列表
 * @param {*} data 
 */
export function getProjectList(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/lists",
    method: "get",
    params: data
  });
}
/**
 * 根据id删除项目
 * @param {*} data 
 */
export function delProjecById(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/lists",
    method: "get",
    params: data
  });
}
/**
 * 新建早会
 * @param {*} data 
 */
export function addMorningText(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/addProjectZh",
    method: "post",
    data
  });
}
/**
 * 根据项目id获取项目早会列表
 * @param {*} data 
 */
export function getMorningText(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/getZhList",
    method: "get",
    params: data
  });
}
/**
 * 根据项目id获取该项目附属项目
 * @param {*} data 
 */
export function getProjectChild(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/listChild",
    method: "get",
    params: data
  });
}
/**
 * 新增项目节点
 * @param {*} data 
 */
export function addNode(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/addProjectNode",
    method: "post",
    data
  });
}

/**
 * 获取项目节点
 * @param {*} data 
 */
export function getNodeList(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/getNodeList",
    method: "get",
    params: data
  });
}
/**
 * 删除节点
 * @param {*} data 
 */
export function deleteNode(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/delProjectNode",
    method: "get",
    params: data
  });
}
/**
 * 修改节点信息
 * @param {*} data 
 */
export function editNode(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/editProjectNode",
    method: "post",
    data
  });
}
/**
 * 添加日报
 * @param {*} data 
 */
export function addDayText(data) {
  return request({
    url: "/shouhuzhe/public/index/index_project/addProjectRb",
    method: "post",
    data
  });
}
